<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
		<script type="text/javascript">
			var $app_root="__ROOT__";
			var $app_public="__PUBLIC__";
			var $app_url="__URL__";
		</script>
		<link href="__PUBLIC__/admin/css/admin.css" rel="stylesheet" type="text/css" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<script type="text/javascript" src="__PUBLIC__/admin/js/jquery-1.7.2.min.js"></script>
		<!--Jquery UI插件-->
		<script type="text/javascript" src="__PUBLIC__/js/jquery-hcheckbox.js"></script>
		<script type="text/javascript" src="__PUBLIC__/js/jquery.idTabs.min.js"></script>
		<link href="__PUBLIC__/js/JqueryUi/css/custom-theme/jquery-ui-1.10.3.custom.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="__PUBLIC__/js/JqueryUi/js/jquery-ui-1.10.3.custom.min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/js/JqueryUi/js/jquery-ui-timepicker-addon.js"></script>
		<!--UPLOADIFY-->  
		<script src="__PUBLIC__/uploadify/jquery.uploadify.min.js" type="text/javascript"></script>
        <script type="text/javascript" src="__PUBLIC__/admin/js/adminedit.js"></script>

</head>
<body id="conedit">
<div>
	<ul class="idTabs"> 
	  <li><a href="#add_content">内容</a></li> 
	  <li><a href="#add_pics">组图上传</a></li> 
	  <li><a href="#add_attach">相关设置</a></li>
	</ul> 
</div>
<div class="clear" style="height:10px;"></div>
<form action="__URL__/editing" method="POST" enctype="multipart/form-data">
<input type="hidden" name="id" value="<{$list.id}>"/>
<input type="hidden" name="catid" value="<{$list.catid}>">
<div id="add_content">
	<div class="edit_head">
		<ul>
			<li>
				<span>栏目：</span><diy:selects options="menu" selected="menuvalue" name="typeid" id="menu" disabled="disabled" first="请选择"/>
			</li>
		
			<li>
				<span>标题：</span> <input type="text" name="title" class="title" value="<{$list.title}>"/>
			</li>
            <li>
				<span>颜色：</span> <input type="text" name="titlecolor" id="color" style="width:100px;"  class="title"/>
			</li>
            <li>
				<span>title：</span><input type="text" name="seotitle" class="title" value="<{$list.seotitle}>"/>
			</li>
			<li>
				<span>属性：</span><html:checkbox name="stick" checkboxes="stick" class="checkbox"/>
			</li>
		</ul>
	</div>
	<div class="edit_pic">
		<input type="hidden" name="pic" id="picname"/>
		<img src="<{$thumb}>" id="s_pic"/>
		<div>
		<input id="pic_upload" name="pic_upload" type="file" multiple="true">
		</div>
	</div>
	<div class="clear"></div>
	<div class="content">
		<div id="left"><span>内容：</span></div>
		<div id="editor">
			<textarea cols="80" id="content" name="content" rows="10"><{$list.content}></textarea>
			<{$ck}>
		</DIV>  
		<div class="clear"></div>
	</div>
</div>

<div id="add_pics">
	<div id="files"><input id="file_upload" name="file_upload" type="file" multiple="true"></div>
	<div class="clear"></div>
	<div id="divTxt">
		<volist name="list.picurl" id="vo">
			<div class="pics">
				<div class="pic">
					<p><img src="__ROOT__/Uploads/<{$pics}><{$vo.s_pics}>" /></p>
					<input type="hidden" class="pid" name="pid[]" value="<{$vo.pid}>"/>
					<input type="hidden" class="pics" name="pics[]" value="<{$vo.pics}>" />
				</div>
				<p class="delete">[ <a href="javascript:void(0)" )>删除</a> ]</p>
				<div>
					<input type="text" class="picname" id="picn<{$vo.pid}>" name="picname[]" value="<{$vo.picname}>"/>
				</div>
				<div>
					<textarea name="piccontent[]" class="piccontent" ><{$vo.piccontent}></textarea>
				</div>
			</div>
		</volist>
	</div>
</div>

<div id="add_attach">
	<div class="edit_head">
		<ul class="edit_attach">
			<li><span>关键词：</span><input type="text" name="keywords" class="duan" value="<{$list.keywords}>"/></li>
			<li><span>描述：</span><input type="text" name="description" class="title" value="<{$list.description}>"/></li>
			<li><span>跳转地址：</span><input type="text" name="url" class="duan" value="<{$list.sourceurl}>"/></li>
			<li><span>TAG标签：</span><input type="text" name="tag" class="duan" value="<{$list.tag}>"/></li>
			<li><span>来源名：</span><input type="text" name="sourcename" class="duan" value="<{$list.sourcename}>"/></li>
			<li><span>来源地址：</span><input type="text" name="sourceurl" class="duan" value="<{$list.sourceurl}>"/></li>
			<li><span>允许评论：</span><html:radio name="allow_comment" radios="allow" checked="allowvalue"/></li>
			<li><span>浏览权限：</span><html:select options="groupids" name="groupids_view" selected="groupidsvalue"/></li>
			<li><span>发布时间：</span><input type="text" name="addtime" value="<{$list.addtime}>" id="datepicker" class="duan"/></li>
			<li><span>文 件 名：</span><input type="text" name="filename" value="<{$list.filename}>" class="duan"/></li>
		</ul>
	</div>
</div>

<div id="submit">	
		<button type="submit" onclick="ubt()">确认发布</button>	
		<button type="button" onclick="javascript:history.back();">返回</button>
</div>
</form>
<script type="text/javascript" src="__PUBLIC__/admin/js/adminedit.js"></script>
</body>
</html>
